<?php

namespace app\api\validate;

use think\Validate;

class Order extends Validate
{
    protected $rule = [
        ['id',             'require',                   '选择套餐类型'],
        ['method',         'require|number|in:2,3',     '选择支付类型|选择支付类型|不支持的付款方式'],
        ['video_id',       'require',                   '请先选择视频'],
    ];

    protected $scene = [
        'noble'             => ['id', 'method'],
        'video'             => ['video_id', 'method'],
    ];
}
